<?php

/* vim: set expandtab tabstop=4 shiftwidth=4 softtabstop=4: */

/**
 * Smarty block function to display notices
 *
 * @category      Framework
 * @package       Pfw
 * @author        Sean Sitter <sean@picnicphp.com>
 * @copyright     2010 The Picnic PHP Framework
 * @license       http://www.apache.org/licenses/LICENSE-2.0 Apache License, Version 2.0
 * @link          http://www.picnicphp.com
 * @since         0.10
 */

require_once 'function.form_field.php';

function smarty_block_textarea($params, $content, &$smarty, &$repeat)
{
    // only output on the closing tag
    if(!$repeat){
        if (isset($content)) {
            $params['attr.value'] = $content;
            $params['type'] = 'textarea';
            // do some intelligent translation thing here with $content
            return smarty_function_form_field($params, $smarty);
        }
    }
}
?>